﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication3
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] array = { 1, 2, 100, 4};
            int max = 0, n=1;
            for (int i = 1; i < array.Length; i++)
            {
                if (array[i] >= max)
                {
                    if (max == array[i])
                    {
                        n++;
                        //Console.WriteLine(n);
                        //Console.ReadLine();
                    }
                    max = array[i];

                }
            }
            Console.WriteLine(n);
            Console.ReadLine();

        }
    }
}
